package ${basePackage};

import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

<#list importClasses as importClass>
import ${importClass};
</#list>

/**
* ${className}的测试类
*
* @author ${author!''}
* @date ${date}
*/
@ExtendWith(SpringExtension.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ${className}Test {
    @Autowired
    private ${className} ${className?uncap_first};

    @BeforeAll
    public static void setUpClass(){
        //执行所有测试前的操作

    }
    @AfterAll
    public static void tearDownClass(){
        //执行完所有测试后的操作

    }
    @BeforeEach
    public void setUp(){
        //每次测试前的操作

    }
    @AfterEach
    public void tearDown(){
        //每次测试后的操作
    }
<#list methods as method>
    @Test
    public void test${method.methodName?cap_first}(){
    ${method.methodBody!''}
    }
</#list>

}